Optimal. Leaf size=189 \[ -\frac {4}{3 a^2 d (c+d x)}+\frac {1}{3 a d (c+d x) \left (a+b (c+d x)^3\right )}+\frac {4 \sqrt [3]{b} \tan ^{-1}\left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} (c+d x)}{\sqrt {3} \sqrt [3]{a}}\right )}{3 \sqrt {3} a^{7/3} d}+\frac {4 \sqrt [3]{b} \log \left (\sqrt [3]{a}+\sqrt [3]{b} (c+d x)\right )}{9 a^{7/3} d}-\frac {2 \sqrt [3]{b} \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} (c+d x)+b^{2/3} (c+d x)^2\right )}{9 a^{7/3} d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 189, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 9, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {379, 296, 331,
298, 31, 648, 631, 210, 642} \begin {gather*} \frac {4 \sqrt [3]{b} \text {ArcTan}\left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} (c+d x)}{\sqrt {3} \sqrt [3]{a}}\right )}{3 \sqrt {3} a^{7/3} d}-\frac {2 \sqrt [3]{b} \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} (c+d x)+b^{2/3} (c+d x)^2\right )}{9 a^{7/3} d}+\frac {4 \sqrt [3]{b} \log \left (\sqrt [3]{a}+\sqrt [3]{b} (c+d x)\right )}{9 a^{7/3} d}-\frac {4}{3 a^2 d (c+d x)}+\frac {1}{3 a d (c+d x) \left (a+b (c+d x)^3\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 210
Rule 296
Rule 298
Rule 331
Rule 379
Rule 631
Rule 642
Rule 648
Rubi steps
\begin {align*} \int \frac {1}{(c+d x)^2 \left (a+b (c+d x)^3\right )^2} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x^2 \left (a+b x^3\right )^2} \, dx,x,c+d x\right )}{d}\\ &=\frac {1}{3 a d (c+d x) \left (a+b (c+d x)^3\right )}+\frac {4 \text {Subst}\left (\int \frac {1}{x^2 \left (a+b x^3\right )} \, dx,x,c+d x\right )}{3 a d}\\ &=-\frac {4}{3 a^2 d (c+d x)}+\frac {1}{3 a d (c+d x) \left (a+b (c+d x)^3\right )}-\frac {(4 b) \text {Subst}\left (\int \frac {x}{a+b x^3} \, dx,x,c+d x\right )}{3 a^2 d}\\ &=-\frac {4}{3 a^2 d (c+d x)}+\frac {1}{3 a d (c+d x) \left (a+b (c+d x)^3\right )}+\frac {\left (4 b^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx,x,c+d x\right )}{9 a^{7/3} d}-\frac {\left (4 b^{2/3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{a}+\sqrt [3]{b} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,c+d x\right )}{9 a^{7/3} d}\\ &=-\frac {4}{3 a^2 d (c+d x)}+\frac {1}{3 a d (c+d x) \left (a+b (c+d x)^3\right )}+\frac {4 \sqrt [3]{b} \log \left (\sqrt [3]{a}+\sqrt [3]{b} (c+d x)\right )}{9 a^{7/3} d}-\frac {\left (2 \sqrt [3]{b}\right ) \text {Subst}\left (\int \frac {-\sqrt [3]{a} \sqrt [3]{b}+2 b^{2/3} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,c+d x\right )}{9 a^{7/3} d}-\frac {\left (2 b^{2/3}\right ) \text {Subst}\left (\int \frac {1}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,c+d x\right )}{3 a^2 d}\\ &=-\frac {4}{3 a^2 d (c+d x)}+\frac {1}{3 a d (c+d x) \left (a+b (c+d x)^3\right )}+\frac {4 \sqrt [3]{b} \log \left (\sqrt [3]{a}+\sqrt [3]{b} (c+d x)\right )}{9 a^{7/3} d}-\frac {2 \sqrt [3]{b} \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} (c+d x)+b^{2/3} (c+d x)^2\right )}{9 a^{7/3} d}-\frac {\left (4 \sqrt [3]{b}\right ) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 \sqrt [3]{b} (c+d x)}{\sqrt [3]{a}}\right )}{3 a^{7/3} d}\\ &=-\frac {4}{3 a^2 d (c+d x)}+\frac {1}{3 a d (c+d x) \left (a+b (c+d x)^3\right )}+\frac {4 \sqrt [3]{b} \tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{b} (c+d x)}{\sqrt [3]{a}}}{\sqrt {3}}\right )}{3 \sqrt {3} a^{7/3} d}+\frac {4 \sqrt [3]{b} \log \left (\sqrt [3]{a}+\sqrt [3]{b} (c+d x)\right )}{9 a^{7/3} d}-\frac {2 \sqrt [3]{b} \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} (c+d x)+b^{2/3} (c+d x)^2\right )}{9 a^{7/3} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 168, normalized size = 0.89 \begin {gather*} \frac {-\frac {9 \sqrt [3]{a}}{c+d x}-\frac {3 \sqrt [3]{a} b (c+d x)^2}{a+b (c+d x)^3}-4 \sqrt {3} \sqrt [3]{b} \tan ^{-1}\left (\frac {-\sqrt [3]{a}+2 \sqrt [3]{b} (c+d x)}{\sqrt {3} \sqrt [3]{a}}\right )+4 \sqrt [3]{b} \log \left (\sqrt [3]{a}+\sqrt [3]{b} (c+d x)\right )-2 \sqrt [3]{b} \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} (c+d x)+b^{2/3} (c+d x)^2\right )}{9 a^{7/3} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.24, size = 154, normalized size = 0.81
method | result | size |
default | \(-\frac {1}{a^{2} d \left (d x +c \right )}-\frac {b \left (\frac {\frac {d \,x^{2}}{3}+\frac {2 c x}{3}+\frac {c^{2}}{3 d}}{b \,d^{3} x^{3}+3 b c \,d^{2} x^{2}+3 b \,c^{2} d x +b \,c^{3}+a}+\frac {4 \left (\munderset {\textit {\_R} =\RootOf \left (b \,d^{3} \textit {\_Z}^{3}+3 b c \,d^{2} \textit {\_Z}^{2}+3 b \,c^{2} d \textit {\_Z} +b \,c^{3}+a \right )}{\sum }\frac {\left (\textit {\_R} d +c \right ) \ln \left (x -\textit {\_R} \right )}{d^{2} \textit {\_R}^{2}+2 c d \textit {\_R} +c^{2}}\right )}{9 b d}\right )}{a^{2}}\) | \(154\) |
risch | \(\frac {-\frac {4 b \,d^{2} x^{3}}{3 a^{2}}-\frac {4 c b d \,x^{2}}{a^{2}}-\frac {4 b x \,c^{2}}{a^{2}}-\frac {4 b \,c^{3}+3 a}{3 d \,a^{2}}}{\left (b \,d^{3} x^{3}+3 b c \,d^{2} x^{2}+3 b \,c^{2} d x +b \,c^{3}+a \right ) \left (d x +c \right )}+\frac {4 \left (\munderset {\textit {\_R} =\RootOf \left (a^{7} d^{3} \textit {\_Z}^{3}-b \right )}{\sum }\textit {\_R} \ln \left (\left (-4 a^{7} d^{4} \textit {\_R}^{3}+3 b d \right ) x -4 a^{7} c \,d^{3} \textit {\_R}^{3}-a^{5} d^{2} \textit {\_R}^{2}+3 b c \right )\right )}{9}\) | \(166\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 384 vs.
\(2 (148) = 296\).
time = 0.39, size = 384, normalized size = 2.03 \begin {gather*} -\frac {12 \, b d^{3} x^{3} + 36 \, b c d^{2} x^{2} + 36 \, b c^{2} d x + 12 \, b c^{3} + 4 \, \sqrt {3} {\left (b d^{4} x^{4} + 4 \, b c d^{3} x^{3} + 6 \, b c^{2} d^{2} x^{2} + b c^{4} + {\left (4 \, b c^{3} + a\right )} d x + a c\right )} \left (\frac {b}{a}\right )^{\frac {1}{3}} \arctan \left (\frac {2}{3} \, \sqrt {3} {\left (d x + c\right )} \left (\frac {b}{a}\right )^{\frac {1}{3}} - \frac {1}{3} \, \sqrt {3}\right ) + 2 \, {\left (b d^{4} x^{4} + 4 \, b c d^{3} x^{3} + 6 \, b c^{2} d^{2} x^{2} + b c^{4} + {\left (4 \, b c^{3} + a\right )} d x + a c\right )} \left (\frac {b}{a}\right )^{\frac {1}{3}} \log \left (b d^{2} x^{2} + 2 \, b c d x + b c^{2} - {\left (a d x + a c\right )} \left (\frac {b}{a}\right )^{\frac {2}{3}} + a \left (\frac {b}{a}\right )^{\frac {1}{3}}\right ) - 4 \, {\left (b d^{4} x^{4} + 4 \, b c d^{3} x^{3} + 6 \, b c^{2} d^{2} x^{2} + b c^{4} + {\left (4 \, b c^{3} + a\right )} d x + a c\right )} \left (\frac {b}{a}\right )^{\frac {1}{3}} \log \left (b d x + b c + a \left (\frac {b}{a}\right )^{\frac {2}{3}}\right ) + 9 \, a}{9 \, {\left (a^{2} b d^{5} x^{4} + 4 \, a^{2} b c d^{4} x^{3} + 6 \, a^{2} b c^{2} d^{3} x^{2} + {\left (4 \, a^{2} b c^{3} + a^{3}\right )} d^{2} x + {\left (a^{2} b c^{4} + a^{3} c\right )} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.18, size = 170, normalized size = 0.90 \begin {gather*} \frac {- 3 a - 4 b c^{3} - 12 b c^{2} d x - 12 b c d^{2} x^{2} - 4 b d^{3} x^{3}}{3 a^{3} c d + 3 a^{2} b c^{4} d + 18 a^{2} b c^{2} d^{3} x^{2} + 12 a^{2} b c d^{4} x^{3} + 3 a^{2} b d^{5} x^{4} + x \left (3 a^{3} d^{2} + 12 a^{2} b c^{3} d^{2}\right )} + \frac {\operatorname {RootSum} {\left (729 t^{3} a^{7} - 64 b, \left ( t \mapsto t \log {\left (x + \frac {81 t^{2} a^{5} + 16 b c}{16 b d} \right )} \right )\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.78, size = 204, normalized size = 1.08 \begin {gather*} \frac {4 \, \left (\frac {b}{a d^{3}}\right )^{\frac {1}{3}} \log \left ({\left | -\left (\frac {b}{a d^{3}}\right )^{\frac {1}{3}} - \frac {1}{{\left (d x + c\right )} d} \right |}\right )}{9 \, a^{2}} - \frac {4 \, \sqrt {3} \left (a^{2} b\right )^{\frac {1}{3}} \arctan \left (\frac {\sqrt {3} {\left (\left (\frac {b}{a d^{3}}\right )^{\frac {1}{3}} - \frac {2}{{\left (d x + c\right )} d}\right )}}{3 \, \left (\frac {b}{a d^{3}}\right )^{\frac {1}{3}}}\right )}{9 \, a^{3} d} - \frac {2 \, \left (a^{2} b\right )^{\frac {1}{3}} \log \left (\left (\frac {b}{a d^{3}}\right )^{\frac {2}{3}} - \frac {\left (\frac {b}{a d^{3}}\right )^{\frac {1}{3}}}{{\left (d x + c\right )} d} + \frac {1}{{\left (d x + c\right )}^{2} d^{2}}\right )}{9 \, a^{3} d} - \frac {1}{{\left (d x + c\right )} a^{2} d} - \frac {b}{3 \, {\left (d x + c\right )} a^{2} {\left (b + \frac {a}{{\left (d x + c\right )}^{3}}\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.81, size = 231, normalized size = 1.22 \begin {gather*} \frac {4\,b^{1/3}\,\ln \left (b^{1/3}\,c+a^{1/3}+b^{1/3}\,d\,x\right )}{9\,a^{7/3}\,d}-\frac {\frac {4\,b\,c^3+3\,a}{3\,a^2\,d}+\frac {4\,b\,d^2\,x^3}{3\,a^2}+\frac {4\,b\,c^2\,x}{a^2}+\frac {4\,b\,c\,d\,x^2}{a^2}}{a\,c+x\,\left (4\,b\,d\,c^3+a\,d\right )+b\,c^4+b\,d^4\,x^4+6\,b\,c^2\,d^2\,x^2+4\,b\,c\,d^3\,x^3}-\frac {4\,b^{1/3}\,\ln \left (2\,b^{1/3}\,c-a^{1/3}+2\,b^{1/3}\,d\,x+\sqrt {3}\,a^{1/3}\,1{}\mathrm {i}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}{9\,a^{7/3}\,d}+\frac {b^{1/3}\,\ln \left (2\,b^{1/3}\,c-a^{1/3}+2\,b^{1/3}\,d\,x-\sqrt {3}\,a^{1/3}\,1{}\mathrm {i}\right )\,\left (-\frac {2}{9}+\frac {\sqrt {3}\,2{}\mathrm {i}}{9}\right )}{a^{7/3}\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________